package cn.yll.order.entity;

import cn.yll.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品信息表映射实体
 * </p>
 *
 * @author yll
 * @since 2022-08-03
 */
@Data
@Accessors(chain = true)
@TableName("goods")
@ApiModel(value = "GoodsEntity对象", description = "商品信息表映射实体")
public class GoodsEntity extends BaseEntity {

    @ApiModelProperty("商品名称")
    private String goodName;

    @ApiModelProperty("单价，分")
    private Integer price;

    @ApiModelProperty("单位名称")
    private String unitName;

    @ApiModelProperty("商品类别名称")
    private String category;

    @ApiModelProperty("商品现有数量")
    private Integer goodNum;
}
